import {EntityId, PageQueryParams} from "kf-web-library";
import {Journal_Summary} from "@/services";

export interface JournalSubscribePlanPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  journalId?: EntityId;
}

export interface JournalSubscribePlan{
  deleted: number; //删除标记
  id: number; //主键
  journal: Journal_Summary; //期刊
  planCode: string; //套餐代码
  planName: string; //套餐名称(如:季度套餐,年度套餐)
  issueCount: number; //包含期数
  originalPrice: number; //原始总价
  totalPrice: number; //套餐总价
  discountRate: number; //折扣率
  description: string; //套餐描述
  isRecommended: boolean; //是否推荐(1:是,0:否)
  enable: boolean; //状态(1:可用,0:不可用)
  seq: number; //排序号
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
}


export interface JournalSubscribePlan_Create{
  journalId: string; //期刊ID
  planCode: string; //套餐代码
  planName: string; //套餐名称(如:季度套餐,年度套餐)
  issueCount: number; //包含期数
  originalPrice: number; //原始总价
  totalPrice: number; //套餐总价
  discountRate: number; //折扣率
  description: string; //套餐描述
  isRecommended: boolean; //是否推荐(1:是,0:否)
  enable: boolean; //状态(1:可用,0:不可用)
  seq: number; //排序号
}



export interface JournalSubscribePlan_Modify  {
  id: EntityId;
  journalId: EntityId;
  planCode: string; //套餐代码
  planName: string; //套餐名称(如:季度套餐,年度套餐)
  issueCount: number; //包含期数
  originalPrice: number; //原始总价
  totalPrice: number; //套餐总价
  discountRate: number; //折扣率
  description: string; //套餐描述
  isRecommended: boolean; //是否推荐(1:是,0:否)
  enable: boolean; //状态(1:可用,0:不可用)
  seq: number; //排序号
}


export interface JournalSubscribePlan_Patch extends Partial<JournalSubscribePlan_Modify> {
  id: EntityId;
}

